# 该镜像需要依赖的基础镜像
#FROM openjdk:8-jdk-alpine
#FROM 10.5.5.2:5000/dragonwell-11.0.14.10_jdk-11.0.14-ga_alpine_x86_64-skywalking:latest

#FROM registry.cn-hangzhou.aliyuncs.com/dragonwell/dragonwell:dragonwell-11.0.13.9_jdk-11.0.13-ga_x86_64_slim
FROM 10.5.5.2:5000/dragonwell:dragonwell-11.0.15

# 将targer目录下的jar包复制到docker容器/home/springboot目录下面目录下面
ADD ./target/drain-cus-server-v1.0.0-SNAPSHOT.jar /home/springboot/drain-cus-server-v1.0.0-SNAPSHOT.jar

ENV LANG=C.UTF-8 LC_ALL=C.UTF-8

ENV JAVA_OPTS=""
# 声明服务运行在8080端口
EXPOSE 38098
# 执行命令
ENTRYPOINT java ${JAVA_OPTS} -Dfile.encoding=UTF-8 -Dspring.profiles.active=test -jar /home/springboot/drain-cus-server-v1.0.0-SNAPSHOT.jar
